feat(llm): add OrcaRouter as a first-class model provider - #2
Open
bangla24bdrang-lab wants to merge 1 commit into
Open
feat(llm): add OrcaRouter as a first-class model provider#2bangla24bdrang-lab wants to merge 1 commit into
bangla24bdrang-lab wants to merge 1 commit into
Conversation
Adds scorpio.llm.orcarouter, a named provider package mirroring the existing scorpio.llm.openai wiring. OrcaRouter is an OpenAI-compatible gateway for models and agents, so the provider reuses OpenAIModelService against https://api.orcarouter.ai/v1 with model listing enabled. Registered in registerBuiltInLlmProviders() so it shows up in the admin UI provider list alongside the existing providers, and documented in the models guide (EN + zh).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add OrcaRouter as a first-class model provider
sbot's model layer is modular — providers are independent building blocks registered into
llmProviderRegistry, and sbot already ships OpenAI, Anthropic, Gemini, and Ollama among others. This PR adds OrcaRouter the same way: a newscorpio.llm.orcarouterpackage that mirrors the existingscorpio.llm.openaiwiring and registers a named provider, so it appears in the admin Language Models provider list instead of being treated as an anonymous custom base URL.OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models — but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Adding
orcarouteras a first-class provider means this project's users can use that stack directly. It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.What changed
packages/backend/llm/scorpio.llm.orcarouter/— new provider package, reusingOpenAIModelServiceagainsthttps://api.orcarouter.ai/v1with/modelslisting (default modelorcarouter/fusion)packages/backend/sbot/src/Core/LlmProviders.ts— register the provider inregisterBuiltInLlmProviders()packages/apps/docs/guide/models.md+ zh) — added OrcaRouter to the supported providers tableVerification
scorpio.llm.orcarouterbuilds (tsc -b --force)@qingfeng346/sbottypecheck passes (0 errors)orcarouter/fusion;/modelslisting returned 203 modelsDiscord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter
I'm an engineer on the OrcaRouter team.